package cn.vivi.seckill.service;

import cn.vivi.seckill.vo.RespBean;

public interface SecKillService {

    // 判断是否可以秒杀
    RespBean isToSecKill(String goodsId, String userTicket);

    // 获取秒杀结果
    RespBean getResult(String goodsId, String userTicket);

    // 获取秒杀地址
    RespBean createPath(String userTicket, String goodsId);

    // 验证路径是否合法
    boolean checkPath(String path, String userTicket, String goodsId);
}
